#include "Animation.h"
#include "Globals.h"


Animation::Animation()
{
	m_frames = std::vector<std::pair < std::pair<int, int>, std::pair<int, int> > >(20);
	m_frameCount = 0;
}


Animation::~Animation()
{
}

void Animation::AddFrame(int x0, int y0, int xf, int yf)
{
	std::pair < std::pair<int, int>, std::pair<int, int> > newFrame;
	newFrame.first.first = x0;
	newFrame.first.second = y0;
	newFrame.second.first = xf;
	newFrame.second.second = yf;
	m_frames[m_frameCount++] = (newFrame);
}

std::pair < std::pair<int, int>, std::pair<int, int> > Animation::GetFrame(int frame)
{
	return m_frames[frame];
}

int Animation::GetCountFrames()
{
	return m_frameCount;
}